package com.demo.dao;

import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.demo.entity.News;
import com.demo.entity.base.Page;
import com.jweb.annotaion.JRemark;

public interface INewsDao {
	@JRemark(remark = "查询新闻")
	List<News> listNews(@Param("type") String type, @Param("page") Page page);

	int listNewsCount(@Param("type") String type);

	News getNewsById(int id);
 
	@JRemark(remark = "查询所有的新闻类型")
	List<Map<String, Integer>> listAllType();

	/*
	
	*/
	List<Map<Integer, String>> listHot48();

	List<Map<Integer, String>> listHot7Day();

	List<Map<Integer, String>> listHotMonth();

	List<Map<Integer, String>> listHotComment();
}
